Skip to content

chore: remove duplicate files, dead hooks, and redundant rules#10

Closed
saif-at-scalekit wants to merge 1 commit into
mainfrom
cross-pollinate/cursor-structural-cleanup
Closed

chore: remove duplicate files, dead hooks, and redundant rules#10
saif-at-scalekit wants to merge 1 commit into
mainfrom
cross-pollinate/cursor-structural-cleanup

Conversation

@saif-at-scalekit
Copy link
Copy Markdown
Collaborator

What

Structural cleanup that removes dead weight from the Cursor authstack — duplicate files, non-functional hooks, and a redundant rule.

Changes

Duplicate content removed

  • Deleted agent-connectors/ directory (44 files) — identical copies of files already in references/agent-connectors/. Merged 4 missing connector entries (Attention, Chorus, Clari Copilot, Google Slides) into the canonical references/ copy before deletion.
  • Deleted 6 top-level doc files (byoc.md, connected-accounts.md, connections.md, code-samples.md, providers.md, redirects.md) — byte-for-byte identical to copies in references/.

Dead hooks removed

  • Deleted hooks/ directories from all 5 plugins — all hooks.json files referenced ${CLAUDE_PLUGIN_ROOT}/hooks/beacon.sh, which is a Claude Code environment variable (not Cursor). No beacon.sh script existed in this repo. These were cargo-culted from the Claude Code authstack and had no runtime effect in Cursor.

Redundant rule removed

  • Deleted mcp-auth/rules/no-secrets.mdc — generic "no hardcoded secrets" rule fully covered by the more specific mcp-secrets-hygiene.mdc in the same plugin (which lists actual Scalekit env var names).
  • Updated AGENTS.md to remove no-secrets.mdc from the mcp-auth rules list.

Validation

node scripts/validate-template.mjs passes. Only informational warnings about missing hooks (expected) and MCP configs (unchanged).

Impact

  • 57 files changed, 3,605 lines removed, 6 lines added
  • No content lost — all unique information preserved in canonical references/ locations
  • No functional change to any skill, rule, agent, or command

- Delete duplicate agent-connectors/ directory (44 files identical to
  references/agent-connectors/)
- Merge 4 missing connector entries (Attention, Chorus, Clari Copilot,
  Google Slides) into references/agent-connectors/README.md
- Delete 6 duplicate top-level doc files (byoc.md, connected-accounts.md,
  connections.md, code-samples.md, providers.md, redirects.md) that were
  identical to copies in references/
- Delete hooks/ directories from all 5 plugins (referenced
  ${CLAUDE_PLUGIN_ROOT}/hooks/beacon.sh which is a Claude Code variable,
  not Cursor, and no beacon.sh existed in this repo)
- Delete mcp-auth/rules/no-secrets.mdc (fully redundant with the more
  specific mcp-secrets-hygiene.mdc in the same plugin)
- Update AGENTS.md to remove no-secrets.mdc from mcp-auth rules list
@saif-at-scalekit
Copy link
Copy Markdown
Collaborator Author

Superseded by #12 which includes this cleanup plus the 5→2 AgentKit/SaaSKit consolidation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants